/*using System.Security.AccessControl;
using System.Xml;

namespace CSharpPro._0928;

public class Demo
{
    
    public void TestPrint()
    {

        //ctrl+alt+t 快捷键找到try
        try
        {
            for (int i = 0; i < 11; i++)
            {
                if (i % 2 == 0)
                {
                    Console.WriteLine(i);
                }
            }
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            throw;
        }
        
        
        int num = 10;
        do
        {
            Console.WriteLine(num);
            num--;
        }while(num > 11);
        
        
        while (true)
        {
            Console.WriteLine("请输入选择：");
            Console.WriteLine("1. 登录");
            Console.WriteLine("2. 注册");
            Console.WriteLine("3. 退出");
            string input = Console.ReadLine();
            if (input.Equals("3"))
            {
                break;
            }
        }
    }
    
    //输出1000以内所有水仙花数
    public void TestPrint2()
    {
        int g, s, b;
        Console.WriteLine("1000以内所有水仙花是：");
        for (int i = 100; i <= 999; i++)
        {
            b = i / 100;
            s = (i % 100)/10;
            g = (i % 100) % 10;
            if (i == b * b * b + g * g * g + s * s * s)
            {
                Console.WriteLine(i);
            }
        }
    }
    
    //输出100以内所有质数
    public void TestPrint3()
    {
        Console.WriteLine("100以内所有质数为：");
        Console.WriteLine(1);
        Console.WriteLine(2);
        for (int i = 3; i < 100; i++)
        {

            bool isPrime = true;
            for (int j = 2; j <= Math.Sqrt(i); j++)
            {
                if (i % j == 0)
                {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime)
            {
                Console.WriteLine(i);
            }
        }
    }
}
*/